<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<style type="text/css">
	*{
		margin: 0 auto;
		padding: 0 auto;
	}
	body{
  	       background: pink;}
	.big{
		width: 300px;height: 300px;
		margin: 0 auto;
	}
.nc{
   	width:300px;
   	height: 300px;
   	margin: 0 auto;
   	background: pink; 	
   	border: 3px solid red;
   }
   .nicheng{
   	width:300px;
   	height:30px;
   	background: pink;
   	border: 3px solid red;

   }
  h2{
  	color:pink;
  	font-family: "Blackadder ITC";
  	text-align: center;

  }
  .nic{
  	width: 300px;
  	height:40px;
  	background: yellow;

  }
  .top{
  	background: pink;
  	width:100%;
  	height:500px;
  }

	</style>
</head>
<body>
<div class="top">
	<div class="big">
			<div><h2>message board</h2></div>
		<form action="" method='post'>
			<input type="text" name="nickname" class="nicheng" placeholder="name" />
			<textarea name="contents" class="nc"cols="30" rows="10"></textarea>
			<input type="submit" class='nic' value="submit" />
		</form>
	</div>
</div>

	<table border="1">		
		<tr>
			<td>昵称</td>
			<td>内容</td>
			<td>时间</td>
			<td>事件</td>
		</tr>
		<?php foreach ($data as $k => $v) {?>			
		<tr>
			<td><?php echo $v['contents'] ?></td>
			<td></td>
			<td></td>
		</tr>
		<?php } ?>		
		
	</table>

</body>
</html>